package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/9/5.
 */

public class PersonInfo implements Parcelable{

    private String resultId;//":1,
    private String resultName;//":"",
    private String idCard;//":"身份证号",
    private String resultPhone;//":"手机号",
    private int resultStatus;//":"状态"

    public PersonInfo() {
    }

    public PersonInfo(String resultId, String resultName, String idCard, String resultPhone, int resultStatus) {
        this.resultId = resultId;
        this.resultName = resultName;
        this.idCard = idCard;
        this.resultPhone = resultPhone;
        this.resultStatus = resultStatus;
    }

    public String getResultId() {
        return resultId;
    }

    public void setResultId(String resultId) {
        this.resultId = resultId;
    }

    public String getResultName() {
        return resultName;
    }

    public void setResultName(String resultName) {
        this.resultName = resultName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getResultPhone() {
        return resultPhone;
    }

    public void setResultPhone(String resultPhone) {
        this.resultPhone = resultPhone;
    }

    public int getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(int resultStatus) {
        this.resultStatus = resultStatus;
    }

    @Override
    public String toString() {
        return "PersonInfo{" +
                "resultId='" + resultId + '\'' +
                ", resultName='" + resultName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", resultPhone='" + resultPhone + '\'' +
                ", resultStatus=" + resultStatus +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.resultId);
        dest.writeString(this.resultName);
        dest.writeString(this.idCard);
        dest.writeString(this.resultPhone);
        dest.writeInt(this.resultStatus);
    }

    protected PersonInfo(Parcel in) {
        this.resultId = in.readString();
        this.resultName = in.readString();
        this.idCard = in.readString();
        this.resultPhone = in.readString();
        this.resultStatus = in.readInt();
    }

    public static final Creator<PersonInfo> CREATOR = new Creator<PersonInfo>() {
        @Override
        public PersonInfo createFromParcel(Parcel source) {
            return new PersonInfo(source);
        }

        @Override
        public PersonInfo[] newArray(int size) {
            return new PersonInfo[size];
        }
    };
}
